﻿////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// <copyright>Copyright 2008-2011 Andreas Huber Doenni</copyright>
// Distributed under the Microsoft Public License (Ms-PL).
// See accompanying file License.txt or copy at http://mews.codeplex.com/license.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace Mews.Application
{
    using System.Windows.Forms;

    /// <summary>Provides helper methods for <see cref="Form"/> subclasses.</summary>
    internal static class FormHelper
    {
        internal static DialogResult ShowDialog(Form form)
        {
            using (form)
            {
                return form.ShowDialog();
            }
        }
    }
}
